package dto

import "coursedesign/projectGo/model"

type UserDto struct {
	Name      string `json:"name"`
	Telephone string `json:"telephone"`
}

func ToUserDto(manager model.Manager) UserDto {
	return UserDto{
		Name:      manager.Name,
		Telephone: manager.Telephone,
	}
}
